home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / clib / hdwrench_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-28  |  2.2 KB  |  60 lines

  1. #ifndef  CLIB_HDWRENCH_PROTOS_H
  2. #define  CLIB_HDWRENCH_PROTOS_H
  3.  
  4. /*
  5. **    $VER: hdwrench_protos.h 1.2 (6.10.1999)
  6. **
  7. **    C prototypes. For use with 32 bit integers only.
  8. **
  9. **    Copyright © 1999 Joanne B. Dow, Wizardess Designs, for license to Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif /* __cplusplus */
  16.  
  17. #ifndef  LIBRARIES_HDWRENCH_H
  18. #include <libraries/hdwrench.h>
  19. #endif
  20. /* Open and close a device for use with other library functions */
  21. BOOL HDWOpenDevice( STRPTR devName, ULONG unit );
  22. VOID HDWCloseDevice( VOID );
  23. /* Disk access functions */
  24. UWORD RawRead( BootBlock *bbk, ULONG size );
  25. UWORD RawWrite( BootBlock *bb );
  26. UWORD WriteBlock( BootBlock *bb );
  27. /* Disk RDB access functions */
  28. UWORD ReadRDBs( VOID );
  29. UWORD WriteRDBs( VOID );
  30. /* Simple query functions. */
  31. BOOL QueryReady( LONG *errorcode );
  32. BOOL QueryInquiry( BYTE *inqbuf, LONG *errorcode );
  33. BOOL QueryModeSense( LONG page, LONG msbsize, BYTE *msbuf, LONG *errorcode );
  34. VOID QueryFindValid( ValidIDstruct *validIDs, STRPTR devicename, LONG board, ULONG types, LONG wide_scsi, LONG (*callBack)() );
  35. BOOL QueryCapacity( ULONG *totalblocks, ULONG *blocksize );
  36. /* File and memory IO for RDB information in the two formats recognized */
  37. ULONG ReadMountfile( ULONG unit, STRPTR filename, STRPTR controller );
  38. ULONG ReadRDBStructs( STRPTR filename, ULONG unit );
  39. ULONG WriteMountfile( STRPTR filename, STRPTR ldir, ULONG unit );
  40. ULONG WriteRDBStructs( STRPTR filename );
  41. ULONG InMemMountfile( ULONG unit, STRPTR mfdata, STRPTR controller );
  42. ULONG InMemRDBStructs( STRPTR rdbp, ULONG sizerdb, ULONG unit );
  43. ULONG OutMemMountfile( STRPTR mfp, ULONG *sizew, ULONG sizeb, ULONG unit );
  44. ULONG OutMemRDBStructs( STRPTR rdbp, ULONG *sizew, ULONG sizeb );
  45. /* Complex query functions. */
  46. BOOL FindDiskName( STRPTR diskname );
  47. BOOL FindControllerID( STRPTR devname, ULONG *selfid );
  48. ULONG FindLastSector( VOID );
  49. ULONG FindDefaults( ULONG optimize, struct DefaultsArray *result );
  50. /* The following two functions benefit from an active callback hook. */
  51. /* Please see the HDW_CallBackMsgs.h file for suggested messages. */
  52. ULONG LowlevelFormat( LONG (*callBack)() );
  53. ULONG VerifyDrive( LONG (*callBack)() );
  54.  
  55. #ifdef __cplusplus
  56. }
  57. #endif /* __cplusplus */
  58.  
  59. #endif   /* CLIB_HDWRENCH_PROTOS_H */
  60.